package com.eling.elcms.travel.service;

import com.eling.elcms.basedoc.model.OrgBuilding;
import com.eling.elcms.basedoc.model.Room;
import com.eling.elcms.core.service.IGenericManager;
import com.eling.elcms.travel.model.GroupReserve;
import com.eling.elcms.travel.model.RoomRegister;
import com.eling.elcms.travel.model.view.GroupReserveSaveView;
import com.eling.elcms.travel.model.view.GroupReserveSignUpView;
import com.eling.elcms.travel.model.view.GroupReserveView;
import com.eling.elcms.travel.model.view.RoomView;

import java.util.Date;
import java.util.List;

public interface IGroupReserveManager extends IGenericManager<GroupReserve, Long>{

	List<GroupReserveView> queryGroupReservr(GroupReserveView view);

	List<RoomView> queryRoom(Long pkOrgBuilding, Long pkRoomType, Date startDate, Date endDate);

	List<OrgBuilding> queryBuildingByDes(Long pkDestination);

	GroupReserveSignUpView queryAll(GroupReserve cond);

	GroupReserve saveAll(GroupReserveSaveView grsView);

	List<GroupReserve> queryplanItem(GroupReserve cond);

	GroupReserve saveRoom(GroupReserve cond, Room room);

	void rid(RoomRegister roomRegister, GroupReserve groupReserve);

}